<table style="width: 100%;">
<?php
    $dem=0;
    for( $i = 0; $i<count($deals); $i++)
    {
        $deal = $deals[$i];
        if ($deal->view != -1)
        {
            $dem++;
            if ($dem == 1 )
                echo '<tr>';
            
            echo '<td style="width: 30%">';
            include('render/deal_thumnail.php');
            echo '</td>';
            if ($dem == 3)
            {
                echo '</tr>';
                $dem = 0;
            }    
        }
    }
    $dem++;
    for(; $dem > 0 && $dem<=3; $dem++)
    {
        if ($dem == 1 )
            echo '<tr>';
        echo '<td style="width: 30%">&nbsp;</td>';
        if ($dem == 3)
            echo '</tr>';
    }
?>
</table>

<?=$this->load->view('common/paging_get_more_view',$pPaging); ?>